import VueRouter from "vue-router";

import About from "../pages/About.vue";
import Home from "../pages/Home/index.vue";
import HomeNews from "../pages/Home/News.vue";
import HomeMessage from "../pages/Home/Message/index.vue";
import HomeMessageDetail from "../pages/Home/Message/Detail.vue";

export default new VueRouter({
  routes: [
    {
      name: "about",
      path: "/about",
      component: About,
    },
    {
      path: "/home",
      component: Home,
      children: [
        {
          path: "news",
          component: HomeNews,
        },
        {
          path: "message",
          component: HomeMessage,
          children: [
            {
              name: "homeMessageDetail",
              path: "detail",
              component: HomeMessageDetail,
            },
          ],
        },
      ],
    },
  ],
});
